package com.kris.dev2;

/**
 *
 *	线程安全 单例模式
 */
public class Single {

	public static Single single = null;
	

	public static synchronized Single getInstance(){
		if (single == null){
			single = new Single();
		}
		return single;
	}
	
	public static void main(String[] args) {
		
		
	}
}
